# # for + for 实现打印九九乘法表
# for i in range(1, 10):
#     for j in range(1, i+1):
#         print("{}*{}={} ".format(j, i, j*i), end='')
#     print()

# # while + while 实现打印九九乘法表
# i = 1
# j = 1
# while i < 10:
#     while j <= i:
#         print("{}*{}={} ".format(j, i, j*i), end="")
#         j = j + 1
#     print()
#     j = 1
#     i = i + 1

# while + for 实现打印九九乘法表
i = 1
while i < 10:
    for j in range(1, i + 1):
        print("{}*{}={} ".format(j, i, j*i), end='')
    print()
    i = i + 1